<div class="dux-page-header uk-clearfix">
    <div class="page-title">
        <form class="dux-form uk-form  uk-form-inline" method="get" action="{url()}">
            <div class="uk-form-group">
                <input type="text" name="keyword" class="uk-form-field" value="{$pageMaps.keyword}" placeholder="订单号">
            </div>
            <div class="uk-form-group">
                <input type="date" name="start_time" class="uk-form-field" value="{$pageMaps.start_time}"
                       placeholder="开始时间">
            </div>

            <div class="uk-form-group">
                <input type="date" name="stop_time" class="uk-form-field" value="{$pageMaps.stop_time}"
                       placeholder="结束时间">
            </div>
            <div class="uk-form-group">
                <select class="uk-form-field" name="type">
                    <option value="7">全部</option>
                    <option value="1" <!--if{$pageMaps.type == 1}-->selected <!--{/if}-->>待付款</option>
                    <option value="2" <!--if{$pageMaps.type == 2}-->selected <!--{/if}-->>待配货</option>
                    <option value="3" <!--if{$pageMaps.type == 3}-->selected <!--{/if}-->>待发货</option>
                    <option value="4"  <!--if{$pageMaps.type == 4}-->selected <!--{/if}-->>待收货</option>
                    <option value="5"  <!--if{$pageMaps.type == 5}-->selected <!--{/if}-->>已完成</option>
                    <option value="6"  <!--if{$pageMaps.type == 6}-->selected <!--{/if}-->>已取消</option>
                </select>
            </div>
            <div class="uk-form-group">
                <button type="submit" class="uk-button uk-button-primary"><i class="fa fa-search"></i></button>
            </div>
        </form>
    </div>
</div>
<div class="dux-page-table">
    <!--if{!empty($list)}-->
    <table class="uk-table  uk-table-responsive  uk-table-striped uk-table-hover uk-table-middle dux-table" data-table>
        <thead>
        <tr>
            <th width="160">订单号</th>
            <th>订单名</th>
            <th>买家</th>
            <th>金额</th>
            <th>付款类型/收货类型</th>
            <th>发货信息</th>
            <th width="160">下单时间</th>
            <th width="100" class="uk-text-center">状态</th>
            <th class="uk-text-center" width="80">管理</th>
        </tr>
        </thead>
        <tbody>
        <!--loop{(array)$list as $vo}-->
        <tr>
            <td>{$vo.order_no}</td>
            <td>
                <img src="{$vo.order_image}" width="60" height="60" class="uk-image-thumbnail">
                {$vo.order_title}
            </td>
            <td><a data-dux="dialog-open" data-url="{url('member/MemberUser/dialogUser', ['id' => $vo.order_user_id])}"
                   data-title="用户信息" data-height="250px" href="javascript:;">{$vo.show_name}</a></td>
            <td>
                <div class="uk-text-danger">￥{$vo.order_price}</div>
                <p>运费:{$vo.delivery_price}</p>
            </td>
            <td>
                <div>
                    <!--if{$vo.pay_type}-->
                    在线支付
                    <!--{else}-->
                    货到付款
                    <!--{/if}-->
                </div>
                <div>
                    <!--if{$vo.take_id}-->
                    商品自提
                    <!--{else}-->
                    快递发货
                    <!--{/if}-->
                </div>
            </td>
            <td>
                {$vo.receive_name}
                {$vo.receive_tel}
                <p>{$vo.receive_province}{$vo.receive_city}{$vo.receive_region}{$vo.receive_address}</p>
            </td>
            <td>{date('Y-m-d H:i:s', $vo.order_create_time)}</td>

            <!--if{$vo.status_data.action == 'pay'}-->
            <td class="uk-text-danger uk-text-center">
                {$vo.status_data.name}
            </td>
            <!--{/if}-->
            <!--if{$vo.status_data.action == 'parcel' || $vo.status_data.action == 'delivery'}-->
            <td class="uk-text-warning uk-text-center">
                {$vo.status_data.name}
            </td>
            <!--{/if}-->
            <!--if{$vo.status_data.action == 'receive'}-->
            <td class="uk-text-primary uk-text-center">
                {$vo.status_data.name}
            </td>
            <!--{/if}-->
            <!--if{$vo.status_data.action == 'comment' || $vo.status_data.action == 'complete'}-->
            <td class="uk-text-success uk-text-center">
                {$vo.status_data.name}
            </td>
            <!--{/if}-->
            <!--if{$vo.status_data.action == 'close'}-->
            <td class=" uk-text-center">
                {$vo.status_data.name}
            </td>
            <!--{/if}-->
            <td class="uk-text-center">
                <a href="{url('info', ['id'=>$vo.order_id])}">详情</a>
            </td>
        </tr>
        <!--{/loop}-->
        </tbody>
    </table>
    <!--{else}-->
    <div class="uk-card uk-card-default uk-card-small uk-text-center dux-panel">
        <div class="uk-card-body uk-text-center">暂无订单</div>
    </div>
    <!--{/if}-->
</div>
<div class="dux-page-foot uk-clearfix">
    {$page}
</div>